package org.example.config;


import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
@ComponentScan("org.example.dao")
@Import(jdbcconfig.class)
public class springconfig {
    //1获得管理对象
    //2配置数据源
//    @Bean
//    public DataSource ds(BookDao bookDao) {
//        System.out.println(bookDao);
//        DruidDataSource ds = new DruidDataSource();
//        ds.setDriverClassName(driver);
//        ds.setUrl(url);
//        ds.setUsername(username);
//        ds.setPassword(password);
//        return ds;

    }

